package com.xjzd.spring.property;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestMethoConfigurationProperties {

    private final MethodInfo methodInfo;

    public TestMethoConfigurationProperties(MethodInfo methodInfo) {
        this.methodInfo = methodInfo;
    }

    @GetMapping("/t1")
    public ResponseEntity<MethodInfo> t1() {
        return ResponseEntity.ok(methodInfo);
    }
}
